﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CallCenter
{
    public partial class FormEditScript : Form
    {
        public FormEditScript()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            DialogResult  = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult  = DialogResult.Cancel;
        }

        public string ScriptName
        {
            set
            {
                txtName.Text = value;
            }
            get
            {
                return txtName.Text;
            }
        }

        public string ScriptBody
        {
            set
            {
                txtBody.Text = value;
            }
            get
            {
                return txtBody.Text;
            }
        }
    }
}
